<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
   <head>
       <%@include file="../common/head.jsp" %>
   </head>
  <body class="layui-container">
	    <a href="${ctx}/weixinMenu/add" class="layui-btn">添加</a>  
	    <a href="${ctx}/weixinMenu/publishMenu" class="layui-btn">发布</a>
		<table class="layui-table">
			<colgroup>
				<col width="150">
				<col width="150">
				<col width="150">
				<col width="150">
				<col width="150">
				<col width="150">
				<col width="200">
				<col>
			</colgroup>
			<thead>
				<tr>
					<th>id</th>
					<th>name</th>
					<th>key</th>
					<th>url</th>
					<th>content</th>
					<th>type</th>
					<th>pid</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${menus}" var="menu">
					<tr>
						<td>${menu.id }</td>
						<td>${menu.name }[<a href="${ctx}/weixinMenu/update/${menu.id }">更新</a>&nbsp;<a href="${ctx}/weixinMenu/delete/${menu.id }">删除</a>]
						</td>
						<td>${menu.menukey}</td>
						<td>${menu.url }</td>
						<td>${menu.content }</td>
						<td>${menu.type }[${menu.respontype }]</td>
						<td>${menu.pid}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		
		
		<div>
<c:forEach items="${wmds }" var="wmd">
	<div>
		${wmd.name }--->${wmd.type }-->${wmd.key }--->${wmd.id }
		<br/>
		&nbsp;
			<c:forEach items="${wmd.sub_button }" var="sbm">
				${sbm.name }--->${sbm.type }-->${sbm.key }--->${sbm.id }
				<br/>&nbsp;
			</c:forEach>
	</div>
</c:forEach>
</div>
</body>
</html>
